    <!-- 返回学科 点击修改弹出对话框 -->
    <el-dialog title="修该目录" :visible.sync="addDialogVisible1" width="30%">
      <el-form
        :model="addForm"
        :rules="addFormRules"
        ref="addFormRef"
        label-width="100px"
      >
        <!-- 目录名称 -->
        <el-form-item label="目录名称" prop="directoryName">
          <el-input
            v-model="addForm.directoryName"
            placeholder="请输入目录名称"
          ></el-input>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="addDialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="addDialogVisible = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>

    <!-- 列表点进来 修改对话框 -->
    <el-dialog title="修改目录" :visible.sync="addDialogVisible" width="30%">
      <el-form
        :model="addForm"
        :rules="addFormRules"
        ref="addFormRef"
        label-width="100px"
      >
        <!-- 所属学科下拉框 -->
        <el-form-item label="所属学科">
          <el-select v-model="selectedRoleId" placeholder="请选择">
            <el-option
              v-for="item in options1"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </el-form-item>
        <!-- 目录名称 -->
        <el-form-item label="目录名称" prop="directoryName">
          <el-input
            v-model="addForm.directoryName"
            placeholder="请输入目录名称"
          ></el-input>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="addDialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="addDialogVisible = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>